package com.gljx.web.dao;

import com.gljx.web.Entity.JournalEntry.StudentStateJournal;
import com.gljx.web.Entity.SubjectTwoResult;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface SubjectTwoResultMapper {
	int deleteByPrimaryKey(String fid);

	int insert(SubjectTwoResult record);

	int insertSelective(SubjectTwoResult record);

	SubjectTwoResult selectByPrimaryKey(String fid);

	int updateByPrimaryKeySelective(SubjectTwoResult record);

	int updateByPrimaryKey(SubjectTwoResult record);

	/**
	 * 查找最大编码
	 * @return
	 */
	String selectFnumber(String companyId);

	/**
	 * 根据fid查找科目二考试结果登记信息
	 * @param fid
	 * @return
	 */
	SubjectTwoResult selectSubjectTwoResultByFid(String fid);

	//查询 大小车科目二已培训 大车小车
	List<StudentStateJournal> selectmxJournal(Map map);

	//提交单据
	int submitSubjectTwoResult(SubjectTwoResult subjectTwoResult);

	List<SubjectTwoResult> selectSubjectTwoResult(Map map);

}